﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DC2010.Objects.Base;
using DC2010.Objects.Logic;

namespace DC2010.Objects.Structures
{
    [Serializable]
    public class DialogData : BaseData
    {
	
        public DialogGfx Gfx
        {
            get
            {
                if (!string.IsNullOrEmpty(GfxId))
                {
                    return Root.I.DialogSystem.GetGfx(GfxId);
                }

                return null;
            }
        }	
		
        private DialogLogic _l;
        public DialogLogic L
        {
            get
            {
                if (_l == null)
                    _l = new DialogLogic(this);

                return _l;
            }
        }
    }
}
